/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import { request as __request, checkJsonSchema as __checkJsonSchema } from '../../core/request';
const schemas = require("../schema").default;

export class Service {

    /**
     * 添加一个需求项作为用例树结点
     * @returns any Example response
     * @throws ApiError
     */
    public static async addCaseDemand({
        requestBody,
    }: {
        requestBody?: {
            /**
             * 所属产品版本ID
             */
            productVId: number,
            /**
             * 需求ID
             */
            demandId: number,
        },
    }): Promise<{
        /**
         * 值为0，操作成功
         */
        optResult: number,
        /**
         * 操作失败说明
         */
        msg?: string,
    }> {
        const result = await __request({
            method: 'POST',
            path: `/casemanager/v1/add-demand`,
            body: requestBody,
        });

        __checkJsonSchema("addCaseDemand", schemas, result);
        return result.body;
    }

}